<?php
namespace app\index\controller;
use app\common\tool\Query;
use think\Controller;
use think\Request;
use app\common\model\Config as ConfigModel;

class Base extends Controller{

    protected  $data = [];

    protected $template_root = '';


    public function __construct(Request $request)
    {
        parent::__construct($request);
        $this->template_root = ROOT_PATH.'template'.DS;
        $config = ConfigModel::where([])->column('ckey,cvalue','ckey');

        $this->data['config'] = $config;
        $this->data['query'] = new Query();
    }
}